// 产品信息
const mongoose = require("../db")

const productSchema = mongoose.Schema({
  'productName': String,
  'productIntroduction': String,
  'productType': String,
  'productImg': String,
  'productCreatTime': {
    type: String,
    default: new Date().getTime()
  },
  'productEndTime': {
    type: String,
    default: new Date().getTime()
  },
  'productamount': Number,
})

module.exports = mongoose.model("product", productSchema, 'product')